package com.hy.controller;

import com.hy.bean.AaAccount;
import com.hy.service.AaAccountService;
import com.hy.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("AsAccount")
public class AsAccountController {
    @Autowired
    private AaAccountService asAccountService;

    @RequestMapping("select")
    public ResultUtil select(){
        List<AaAccount> list = asAccountService.list();
        return ResultUtil.ok().put("list",list);
    }
}
